<?php
namespace app\controller\admin\system\admin;

use app\common\repositories\system\AdminLogRepository as repository;
use app\BaseController;
use think\App;

class AdminLog extends BaseController
{
    protected repository $repository;

    public function __construct(App $app, repository $repository)
    {
        parent::__construct($app);
        $this->repository = $repository;
    }

    public function lst()
    {
        [$page, $limit] = $this->page();
        $where = $this->request->params(['section_startTime', 'section_endTime', 'admin_id', 'method', 'date']);
        return app('json')->success($this->repository->lst($where, $page, $limit));
    }
}